//select 창	
$(document).ready(function(){
		
		(function(){
			var selectBoxList = $('.select-box select');
			if(selectBoxList.length){
				$.each(selectBoxList,function(index, el){
					$(el).parent().css('background-position', ($(el).parent().width()-1)+'px 50%');
					try{
						$(el).parent().find('.selected-text').text($(el[el.selectedIndex]).text());
					} catch(err){alert(err);}
				});
				selectBoxList.bind('keypress change ready load',function(e){
					$(this).parent().find('.selected-text').text($(this[this.selectedIndex]).text());
				});
			}

			$('.select-box').bind('focusin',function(e){
				$(this).addClass('hover');
			});
			$('.select-box').bind('focusout',function(e){
				$(this).removeClass('hover');
			});
		})();
	});
